package com.menggudf.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="partsCoordinate")
public class PartsCoordinate implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 455807382161316551L;
    
    private int id;
    private String parts;
    private String sexflag;
    private String prosAndCons;
    private String coordinate_X;
    private String coordinate_Y;
    private Date createTime;
    private String author;
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    
    @Column(name="parts",nullable=false)
    public String getParts() {
        return parts;
    }
    public void setParts(String parts) {
        this.parts = parts;
    }
    
    @Column(name="sexflag",nullable=false)
    public String getSexflag() {
        return sexflag;
    }
    public void setSexflag(String sexflag) {
        this.sexflag = sexflag;
    }
    
    @Column(name="prosAndCons",nullable=false)
    public String getProsAndCons() {
        return prosAndCons;
    }
    public void setProsAndCons(String prosAndCons) {
        this.prosAndCons = prosAndCons;
    }
    @Column(name="coordinate_X",nullable=false)
    public String getCoordinate_X() {
        return coordinate_X;
    }
    public void setCoordinate_X(String coordinate_X) {
        this.coordinate_X = coordinate_X;
    }
    
    @Column(name="coordinate_Y",nullable=false)
    public String getCoordinate_Y() {
        return coordinate_Y;
    }
    public void setCoordinate_Y(String coordinate_Y) {
        this.coordinate_Y = coordinate_Y;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="createTime",length = 19)
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    @Column(name="author")
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    
}
